#完数
for i in range(2,1001):
    s=0
    for j in range(1,i):
        if(i%j==0):
            s+=j
    if(s==i):
        print('It''s a perfect number:%d',i)
